package jnpf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jnpf.entity.ZXGL_DictionarydataEntity;
import jnpf.entity.ZXGL_LiXiangGuanLiXiaLaKuangEntity;
import jnpf.mapper.ZXGL_DictionarydataMapper;
import jnpf.service.ZXGl_DictionarydataService;
import org.springframework.stereotype.Service;

/**
 * @ClassName ZXGL_DictionarydataServiceImpl
 * @Version 1.0
 **/
@Service
public class ZXGL_DictionarydataServiceImpl extends ServiceImpl<ZXGL_DictionarydataMapper, ZXGL_DictionarydataEntity> implements ZXGl_DictionarydataService {

    @Override
    public ZXGL_DictionarydataEntity getXlkNameByIdAndName(String name,String id){
        QueryWrapper<ZXGL_DictionarydataEntity> queryWrapper=new QueryWrapper<>();
        queryWrapper.lambda().eq(ZXGL_DictionarydataEntity::getF_FullName,name).eq(ZXGL_DictionarydataEntity::getF_DictionaryTypeId,id);
        return this.getOne(queryWrapper);
    }
}
